﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F73 RID: 3955
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicSetAutoDressInMagicUnitScRsp : IMessage<RogueMagicSetAutoDressInMagicUnitScRsp>, IMessage, IEquatable<RogueMagicSetAutoDressInMagicUnitScRsp>, IDeepCloneable<RogueMagicSetAutoDressInMagicUnitScRsp>, IBufferMessage
	{
		// Token: 0x17003229 RID: 12841
		// (get) Token: 0x0600B140 RID: 45376 RVA: 0x001DF131 File Offset: 0x001DD331
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicSetAutoDressInMagicUnitScRsp> Parser
		{
			get
			{
				return RogueMagicSetAutoDressInMagicUnitScRsp._parser;
			}
		}

		// Token: 0x1700322A RID: 12842
		// (get) Token: 0x0600B141 RID: 45377 RVA: 0x001DF138 File Offset: 0x001DD338
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicSetAutoDressInMagicUnitScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700322B RID: 12843
		// (get) Token: 0x0600B142 RID: 45378 RVA: 0x001DF14A File Offset: 0x001DD34A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicSetAutoDressInMagicUnitScRsp.Descriptor;
			}
		}

		// Token: 0x0600B143 RID: 45379 RVA: 0x001DF151 File Offset: 0x001DD351
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicSetAutoDressInMagicUnitScRsp()
		{
		}

		// Token: 0x0600B144 RID: 45380 RVA: 0x001DF159 File Offset: 0x001DD359
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicSetAutoDressInMagicUnitScRsp(RogueMagicSetAutoDressInMagicUnitScRsp other) : this()
		{
			this.enableAutoDress_ = other.enableAutoDress_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B145 RID: 45381 RVA: 0x001DF18A File Offset: 0x001DD38A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicSetAutoDressInMagicUnitScRsp Clone()
		{
			return new RogueMagicSetAutoDressInMagicUnitScRsp(this);
		}

		// Token: 0x1700322C RID: 12844
		// (get) Token: 0x0600B146 RID: 45382 RVA: 0x001DF192 File Offset: 0x001DD392
		// (set) Token: 0x0600B147 RID: 45383 RVA: 0x001DF19A File Offset: 0x001DD39A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool EnableAutoDress
		{
			get
			{
				return this.enableAutoDress_;
			}
			set
			{
				this.enableAutoDress_ = value;
			}
		}

		// Token: 0x1700322D RID: 12845
		// (get) Token: 0x0600B148 RID: 45384 RVA: 0x001DF1A3 File Offset: 0x001DD3A3
		// (set) Token: 0x0600B149 RID: 45385 RVA: 0x001DF1AB File Offset: 0x001DD3AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600B14A RID: 45386 RVA: 0x001DF1B4 File Offset: 0x001DD3B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicSetAutoDressInMagicUnitScRsp);
		}

		// Token: 0x0600B14B RID: 45387 RVA: 0x001DF1C2 File Offset: 0x001DD3C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicSetAutoDressInMagicUnitScRsp other)
		{
			return other != null && (other == this || (this.EnableAutoDress == other.EnableAutoDress && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B14C RID: 45388 RVA: 0x001DF200 File Offset: 0x001DD400
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.EnableAutoDress)
			{
				num ^= this.EnableAutoDress.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B14D RID: 45389 RVA: 0x001DF258 File Offset: 0x001DD458
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B14E RID: 45390 RVA: 0x001DF260 File Offset: 0x001DD460
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B14F RID: 45391 RVA: 0x001DF26C File Offset: 0x001DD46C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EnableAutoDress)
			{
				output.WriteRawTag(16);
				output.WriteBool(this.EnableAutoDress);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B150 RID: 45392 RVA: 0x001DF2C8 File Offset: 0x001DD4C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.EnableAutoDress)
			{
				num += 2;
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B151 RID: 45393 RVA: 0x001DF314 File Offset: 0x001DD514
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicSetAutoDressInMagicUnitScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.EnableAutoDress)
			{
				this.EnableAutoDress = other.EnableAutoDress;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B152 RID: 45394 RVA: 0x001DF364 File Offset: 0x001DD564
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B153 RID: 45395 RVA: 0x001DF370 File Offset: 0x001DD570
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 56U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.EnableAutoDress = input.ReadBool();
				}
			}
		}

		// Token: 0x040047BF RID: 18367
		private static readonly MessageParser<RogueMagicSetAutoDressInMagicUnitScRsp> _parser = new MessageParser<RogueMagicSetAutoDressInMagicUnitScRsp>(() => new RogueMagicSetAutoDressInMagicUnitScRsp());

		// Token: 0x040047C0 RID: 18368
		private UnknownFieldSet _unknownFields;

		// Token: 0x040047C1 RID: 18369
		public const int EnableAutoDressFieldNumber = 2;

		// Token: 0x040047C2 RID: 18370
		private bool enableAutoDress_;

		// Token: 0x040047C3 RID: 18371
		public const int RetcodeFieldNumber = 7;

		// Token: 0x040047C4 RID: 18372
		private uint retcode_;
	}
}
